﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Admin_ExpertQA : PX.ShowLayer.BaseView
{
	private PX.ExpertQA.ExpertQAView clsView = new PX.ExpertQA.ExpertQAView();

	public Admin_ExpertQA()
		: base("idTotal")
	{
		clsView.Page = Page;

		lBtnShowAdd.Visible = false;
		lBtnDelete.Visible = false;

		AddTableColumn(new Tony.Structs.TableShowColumn("问题", "Question"));
		AddTableColumn(new Tony.Structs.TableShowColumn("是否解答", "WhetherAnswerName", 100));
		AddTableColumn(new Tony.Structs.TableShowColumn("提问时间", "QDateTime", 150));
	}

	protected override void SetControlText()
	{
		base.SetControlText();
		lBtnEdit.Text = "解答";
		lBtnQueryAll.Text = "全部未解答";
	}

	protected override void ShowEdit()
	{
		base.ShowEdit();
		labFloatTitle.Text = "解答";
	}

	protected override Tony.ShowLayer.FormView GetViewType()
	{
		//return base.GetViewType();
		return clsView;
	}

	protected override void OnInit(EventArgs e)
	{
		base.OnInit(e);
		clsView.nUserID = Convert.ToInt32(Session["LoginUserID"]);
	}

	protected void Page_Load(object sender, EventArgs e)
	{

	}
}
